package cn.com.shaom.learning.sb.config;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * ClassName: CommonsConfig
 * Description: 常规属性配置:使用 @Value 实现
 * Date: 2017/12/20 20:32 【需求编号】
 *
 * @author Shaom
 * @version V1.0.0
 */
@Getter
@Component
public class CommonsConfig {

    @Value("${commons.config.book.name}")
    private String bookName;

    @Value("${commons.config.book.author}")
    private String bookAuthor;

}
